import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router);

export default new Router({
    mode: 'history',
    routes: [
        {
            path: '/',
            name: 'home',
            component: () => import('@/views/home')
        },
        //我的钱包
        {
            path: '/wallet',
            name: 'wallet',
            component: () => import('@/views/wallet')
        },
        //充值
        {
            path: '/recharge',
            name: 'recharge',
            component: () => import('@/views/recharge')
        },
        //收入明细
        {
            path: '/income',
            name: 'income',
            component: () => import('@/views/income')
        },
        //支出明细
        {
            path: '/expend',
            name: 'expend',
            component: () => import('@/views/expend')
        },
        //提现
        {
            path: '/withdraw',
            name: 'withdraw',
            component: () => import('@/views/withdraw')
        },
        //提现明细
        {
            path: '/withdrawDetails',
            name: 'withdraw-details',
            component: () => import('@/views/withdraw-details')
        },
        //支付宝
        {
            path: '/alipay',
            name: 'alipay',
            component: () => import('@/views/alipay')
        },
        //绑定手机
        {
            path: '/bindMobile',
            name: 'bind-mobile',
            component: () => import('@/views/bind-mobile')
        },
        //周星榜
        {
            path: '/topStars',
            name: 'top-stars',
            component: () => import('@/views/top-stars')
        },
        //帮助中心
        {
            path: '/helpCenter',
            name: 'help-center',
            component: () => import('@/views/help-center')
        },
        //分成计划
        {
            path: '/profitPlan',
            name: 'profit-plan',
            component: () => import('@/views/profit-plan')
        },
        //推广明细
        {
            path: '/spreadDetail',
            name: 'spread-detail',
            component: () => import('@/views/spread-detail')
        },
        //没有找到页面
        {
            path: '**',
            name: 'notFound',
            component: () => import('@/views/notFound')
        }
    ]
})
